import java.util.Scanner;

public class Demo2 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("输入机票原价:");
		double num = sc.nextDouble();
		System.out.println("输入月份:");
		int month = sc.nextInt();
		if (4 <= month && month <= 10) {
			System.out.println("旺季");
			System.out.println("商务舱" + num * 0.8);
			System.out.println("经济舱" + num * 0.7);
			System.out.println("头等舱 " + num * 0.9);

		} else if ((month < 4 && month > 10) && (0 < month && month <= 12)) {
			System.out.println("淡季");
			System.out.println("商务舱" + num * 0.4);
			System.out.println("经济舱" + num * 0.3);
			System.out.println("头等舱 " + num * 0.5);
		} else {
			System.out.println("输入错误");
		}

	}

}
